// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import store from "./store";
import App from "./App";
import router from "./router";
import iView from "iview";
import Permission from "./directive/permission";
import "iview/dist/styles/iview.css";

Vue.config.productionTip = false;

Vue.use(iView);

// Vue.directive("permissions", {
//   bind: function(el, binding, vnode) {
//     console.log(binding.value);
//   }
// });

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  store,
  components: { App },
  template: "<App/>"
});
